<include file="Public:header"/>
<style>
body{font-size:12px;color:black}
.page{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;display:inline-block;color:#0066CC;cursor:pointer;}
.page:hover{color:#0066CC}
.page_current{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;color:#FF0000;font-weight:bold;background:#FFEEE5;display:inline-block;}
</style>

数量：{$num}
<table bordercolor="#DDDFFF" border="1" width="100%" style="border-collapse: collapse" cellpadding="3">
	<tr height="17" align="center">
		<td class="title" width="200">卡密</td>
		<td class="title" width="100">状态</td>
		<td class="title" width="100">面额</td>
		<td class="title" width="100">开始时间</td>
		<td class="title" width="100">失效时间</td>
		<td class="title" width="150">添加时间</td>
		<td class="title" width="40">删除</td>
		<td class="title">　</td>
	</tr>
<volist name="wallet" id="wallet">
	<tr height="20" bgcolor="#F1F5FA" class="cat_list" align="center">
		<td width="200" style="font-weight:bold" align="left">{$wallet.passcode}</td>
		<td width="100">{$wallet.status}</td>
		<td width="100">￥{$wallet.amount}</td>
		<td width="80">{$wallet.begin_time|date="Y-m-d",###}</td>
		<td align="center">{$wallet.end_time|date="Y-m-d",###}</td>
		<td width="150">{$wallet.add_time|date="Y-m-d H:i:s",###}</td>
		<td width="40"><a href="javascript:;" onclick="del('{$wallet.passcode}')"><img alt="删除" src="__APP__/statics/icons/icon_delete.gif"></a></td>
		<td></td>
	</tr>
</volist>
</table>
<div id="save">{$page}</div>
<script src="__APP__/statics/webox/webox.js"></script>
<link href="__APP__/statics/webox/jquery-webox.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function del(t){
    var id=t;
	if(confirm('你确定要删除此礼品卡吗？')) {
	     $.ajax({
		      type:"POST",
			  url:"__URL__/del/?type=one",
			  dataType:"html",
			  data:{code:id},
			  success:function(data){
					jSuccess("<strong>删除成功！</strong>",{TimeShown : 500,VerticalPosition : 'center',HorizontalPosition : 'center',onClosed:function(){location.reload();}})
              }
		})
	}
}
</script>
